package com.fat.thegioivere.activities;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.fat.thegioivere.R;

public class SearchTicketActivity extends Activity implements OnClickListener {

	private Button btnCheckLocal;
	private Button btnCheckNational;

	private boolean mIsCheckNational;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_search_ticket);
		getActionBar().setDisplayHomeAsUpEnabled(true);

		// find view id
		findViewByIdAll();

		// init param
		initParam();
	}

	private void findViewByIdAll() {
		btnCheckLocal = (Button) findViewById(R.id.btnCheckLocal);
		btnCheckNational = (Button) findViewById(R.id.btnCheckNational);
		btnCheckLocal.setOnClickListener(this);
		btnCheckNational.setOnClickListener(this);
	}

	/**
	 * Init param for activity
	 */
	private void initParam() {
		mIsCheckNational = true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			this.finish();
			break;
		case R.id.btnCheckLocal:
			break;

		case R.id.btnCheckNational:
			break;
		}
		return super.onOptionsItemSelected(item);
	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub

	}
}
